// Should NOT depend on vscode

export type SupportedTool =
  | 'qmlls'
  | 'rcc'
  | 'uic'
  | 'designer'
  | 'qml'
  | 'lupdate'
  | 'linguist'
  | 'lrelease'
  | 'qmlformat'

export type SuccessResult<T, Name extends string = ''> = {
  readonly kind: `${Name}Success`
  readonly value: T
}

export type ErrorResult<Name extends string> = {
  readonly kind: `${Name}Error`
  readonly message: string
}
